package edu.ncsu.csc.itrust.beans;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * A bean for storing data about Instruction.
 * 
 * A bean's purpose is to store data. Period. Little or no functionality is to be added to a bean 
 * (with the exception of minor formatting such as concatenating phone numbers together). 
 * A bean must only have Getters and Setters (Eclipse Hint: Use Source > Generate Getters and Setters� 
 * to create these easily)
 * 
 * @author Patrick Finegan
 */

public class InstructionBean {
	
	/** Unique identifier number */
	private long instructID = 0L;
	/** HCP that assigned instructions */
	private long hcpID = 0L;
	/** Patient that instructions were assigned to */
	private long pid = 0L;
	/** Descriptive name for the instructions */
	private String descriptName = "";
	/** URL for the instructions */
	private String url = "";
	/** Comments for instructions */
	private String comments = "";
	/** ID for the Office Visit */
	private long officeVisit = 0L;
	/** Modification Date for the Instructions */
	private String modificationDate = "";
	
	/**Constructor*/
	public InstructionBean(){}
	
	/**
	 * Get Instruction ID
	 * @return Unique identifier number
	 */
	public long getInstructID(){ return instructID; }
	
	/**
	 * Set Instruction ID
	 * @param id --  new ID to set
	 */
	public void setInstructID(long id){ instructID = id; }
	
	/**
	 * Get HCP ID
	 * @return Unique HCP id number
	 */
	public long getHCPID(){ return hcpID; }
	
	/**
	 * Set HCP ID
	 * @param id -- new ID to set
	 */
	public void setHCPID(long id){ hcpID = id; }
	
	/**
	 * Get Patient ID
	 * @return Unique Patient id number
	 */
	public long getPID(){ return pid; }
	
	/**
	 * Set Patient ID	
	 * @param id -- new ID to set
	 */
	public void setPID(long id){ pid = id; }
	
	/**
	 * Get Descriptive Instruction Name	
	 * @return descriptName
	 */
	public String getDescriptName(){ return descriptName; }
	
	/**
	 * Set Descriptive Instruction Name
	 * @param desc -- new Description to set
	 */
	public void setDescriptName(String desc){ descriptName = desc; }
	
	/**
	 * Get URL
	 * @return -- url
	 */
	public String getURL(){ return url; }
	
	/**
	 * Set url
	 * @param u -- new url
	 */
	public void setURL(String u){ url = u; }
	
	/**
	 * Get the comments for the instructions
	 * @return -- comments
	 */	
	public String getComments(){ return comments; }
	
	/**
	 * Set the comments for the instructions
	 * @param c -- new comments
	 */
	public void setComments(String c){ comments = c; }
	
	/**
	 * Get the unique id for the office visit this is associated with
	 * @return -- officeVisit
	 */
	public long getOVID(){ return officeVisit; }
	
	/**
	 * Set the unique id for the office visit this is associated with
	 * @param id -- new id
	 */
	public void setOVID(long id){ officeVisit = id; }
	
	/**
	 * Get the date these instructions were modified
	 * @return modificationDate
	 */
	public String getModDate(){ return modificationDate; }
	
	/**
	 * Set the date these instructions were modified
	 * @param mod --  new date
	 */
	public void setModDate(String mod){ modificationDate = mod; }
}
